package com.rg1906.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.rg1906.dao.Impl.TeacherListDaoImpl;
import com.rg1906.entity.Teacher;
import com.rg1906.service.TeacherListService;

public class TeacherListServiceImpl implements TeacherListService{
	TeacherListDaoImpl dao=new TeacherListDaoImpl();

	public List<Teacher> QueryTeacher(String pageNumber, String pageSize, String likeName, String teacherNum, String gradeName) throws SQLException {
		int pageNumberInt = Integer.parseInt(pageNumber);
		int pageSizeInt = Integer.parseInt(pageSize);
		return dao.QueryTeacher(pageNumberInt,pageSizeInt,likeName,teacherNum,gradeName);
	}

	public Long getCount(String likeName, String teacherNum, String gradeName) throws SQLException {
		return dao.getCount(likeName,teacherNum,gradeName);
		
	}
}
